/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author Administrator
 */
public class GroupOfTheSameItems {

    /**
     * Item object
     */
    Item item;
    /**
     * number of items
     */
    int no;

    /**
     * 
     * @param item Item
     * @param no number of item
     */
    public GroupOfTheSameItems(Item item, int no) {
        this.item = item;
        this.no = no;
    }

    /**
     * Return all item beyond the same type as a string
     * @return Return all item of the same type as a string
     */
    @Override
    public String toString()
    {
        return item.toString()+ ", qty: "+this.no;
    }

}
